package com.codes.service.impl;

import com.codes.dao.ProjectMapper;
import com.codes.model.Project;
import com.codes.service.ProjectSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2020/6/2 9:31
 * @Created by peanut
 */
@Service
public class ProjectImpl implements ProjectSV {

    @Autowired
    private ProjectMapper projectMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return projectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Project record) {
        return 0;
    }

    @Override
    public int insertSelective(Project record) {
        return 0;
    }

    @Override
    public Project selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Project record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Project record) {
        return 0;
    }

    @Override
    public int insertByMap(Map map) {
        return projectMapper.insertByMap(map);
    }

    @Override
    public List<Map<String, Object>> getListByMap(Map map) {
        return projectMapper.getListByMap(map);
    }

    @Override
    public int updateByMap(Map m) {
        return projectMapper.updateByMap(m);
    }
}